﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Informant.Services.Models.SmsMessaging" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Informant.Services.Models.SmsMessaging" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://schemas.datacontract.org/2004/07/Informant.Services.Models.Contacts" />
  <xs:complexType name="Sms">
    <xs:sequence>
      <xs:element minOccurs="0" name="Id" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IsRead" type="xs:boolean" />
      <xs:element minOccurs="0" name="Messages" nillable="true" type="tns:ArrayOfMessage" />
      <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/Informant.Services.Models.Contacts" minOccurs="0" name="Recipients" nillable="true" type="q1:ArrayOfPhone" />
      <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/Informant.Services.Models.Contacts" minOccurs="0" name="Sender" nillable="true" type="q2:Phone" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Sms" nillable="true" type="tns:Sms" />
  <xs:complexType name="ArrayOfMessage">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Message" nillable="true" type="tns:Message" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMessage" nillable="true" type="tns:ArrayOfMessage" />
  <xs:complexType name="Message">
    <xs:sequence>
      <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/Informant.Services.Models.Contacts" minOccurs="0" name="Sender" nillable="true" type="q3:Phone" />
      <xs:element minOccurs="0" name="Text" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Message" nillable="true" type="tns:Message" />
  <xs:complexType name="ArrayOfSms">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Sms" nillable="true" type="tns:Sms" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSms" nillable="true" type="tns:ArrayOfSms" />
</xs:schema>